package com.tmsps.ne4weixin.bean.message.custom;

import com.tmsps.ne4weixin.config.enumeration.MsgTypeEnum;

import lombok.Data;

/**
 * @Title: BaseMessage.java
 * @Package: com.tmsps.ne4weixin.bean.custom
 * @Description: 客服消息BaseMessage
 */

@Data
public class BaseMessage {

	/**
	 * 必填 是 openid
	 */
    private String touser;
 
	/**
	 * 必填 是 消息类型
	 */
	private String msgtype;
	
	public BaseMessage(String touser, MsgTypeEnum msgtype) {
		this.touser = touser;
		this.msgtype = msgtype.toName();
	}

}
